var exec = require('cordova/exec');

const AuthCCB = {
    initAuth: function (authCode, success, error) {
        exec(success, error, 'AuthCCB', 'initAuth', [authCode]);
    },
    getAuthInfo: function (params, success, error) {
        exec(success, error, 'AuthCCB', 'getAuthInfo', [params]);
    },
}

window.AuthCCB = AuthCCB;

export default AuthCCB;


var AuthCCBPlugin = function () {

};


var AuthCCBLoader = function (require, exports, module) {

    var exec = require("cordova/exec");

    function AuthCCB() {

    }

    AuthCCB.prototype.initAuth = function (authCode, success, error) {
        exec(success, error, 'AuthCCB', 'initAuth', [authCode]);
    }

    AuthCCB.prototype.getAuthInfo = function (params, success, error) {
        exec(success, error, 'AuthCCB', 'getAuthInfo', [params]);
    }

    var authCCB = new AuthCCB();

    window.AuthCCB = AuthCCB;

    module.exports = authCCB;
}

AuthCCBLoader(require, exports, module);

cordova.define("AuthCCB", AuthCCBLoader);
